<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //创建一个对象user
        var user = {
            name:"itbaizhan",
            age:13,
            jobs:["tibaizhan","sxt"],
            flag:true,
            getName:function(){
                console.log("iwen");
            },
            container:{
                frontEnd:"web前端",
                backEnd:["python","java"]
            }
        }
        //独享的读取方式：  对象名.属性
        console.log(user.name);
        console.log(user.jobs);
        for(var i in user.jobs){
            console.log(user.jobs[i])
        }

        user.getName();
        
        //链式调用
        var result = user.container.frontEnd;
        var result1 = user.container.backEnd;
        console.log(result);
        console.log(result1);
    </script>


</body>
</html>